package com.lzh.redis.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @author zhehen.lu
 * @date 2025/9/6 11:25
 */
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DistributedLock {
    String key();

    long time() default 0L;

    TimeUnit timeUint() default TimeUnit.SECONDS;
}
